package com.company.ddd.domain.share;

import javax.persistence.MappedSuperclass;

/**
 * =================================
 * <p>
 * Created by cjj on 18-11-26.
 * <p>
 * 描述: 树结构
 */

@MappedSuperclass
public abstract class AbstractTree {

    //名称
    private String name;

    //上级id
    private String pid;

    //级别 1,2,...
    private int level;

    //排序
    private int sort;

    //是否有子节点
    private boolean hasLeaf;


}
